<?php 
defined( '_JEXEC' ) or die( 'Restricted access' ); 
$jspath = JPATH_ROOT.DS.'components'.DS.'com_community';
include_once($jspath.DS.'libraries'.DS.'core.php');
?>
<?php if(count($this->comments)) : ?>
	<?php foreach($this->comments as $comment): ?>
		<div class="routeComment" style="width:100%;">
			<div class="commentAvatar" style="float:left; width:8%;margin-top:10px;">
				<a href="<?php echo CRoute::_('index.php?option=com_community&view=profile&userid='.$comment->getUser()->get('id'));?>">
					<img width="40px" height="40px" src="<?php echo $comment->getUser()->getThumbAvatar(); ?>" title="<?php echo $comment->getUser()->username; ?>" style="float:left;"/>
				</a>
			</div>
			<div class="commentText" style="float:left; width:92%;">
				<p>
					<a style="color:#666" href="<?php echo CRoute::_('index.php?option=com_community&view=profile&userid='.$comment->getUser()->get('id'));?>">
						<strong><?php echo $comment->getUser()->username;?></strong>
					</a> 
					<em><?php echo $comment->getDate();?></em>
				</p>
				<p>
					<?php echo $comment->getText(); ?>
				</p>
			</div>
		</div>
	<?php endforeach; ?>
<?php endif; ?>